public class StringDemo02 {
    public static void main(String[] args) {
//        byte[] bytes = new byte[10];
//        bytes[0] = 1;
        byte[] bytes1 = {97, 48, 65};
        String string = new String(bytes1);
        System.out.println(string);//a0A

        String string1 = new String(bytes1, 0, 2);
        System.out.println(string1);

        char[] chars = {'a','b','c'};
        String string2 = new String(chars);
        System.out.println(string2);
    }
}
